package nongchang.kuaijiecaifu.com.ncapp_android.ui.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import ezy.lite.util.ContextUtil;
import ezy.widget.view.IconTextButton;
import nongchang.kuaijiecaifu.com.ncapp_android.R;
import nongchang.kuaijiecaifu.com.ncapp_android.common.fragment.BaseFragment;

import nongchang.kuaijiecaifu.com.ncapp_android.ui.AboutActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.AllOrderActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.CheapActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.GameRuleActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.HowToCalActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.IntegralDetailActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.InvitationActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.MyLaiseeActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.UserAddAddressActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.UserBalanceActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.UserChangeAddressActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.UserInfoActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.UserQuestionActivity;

/**
 * Created by Administrator on 2016/3/11 0011.
 */
public class MainMyFragment extends BaseFragment {
    @BindView(R.id.btn_my_money)
    TextView btnMymoney;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_main_my, container, false);
        return view;
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ButterKnife.bind(this, getView());
    }

    @OnClick({R.id.btn_about, R.id.btn_invate, R.id.btn_my_order, R.id.btn_my_address, R.id.img_icon, R.id.btn_integral, R.id.btn_mylaisee, R.id.btn_cheap, R.id.txt_my_balance, R.id.btn_question})
    void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_about:
                ContextUtil.startActivity(getContext(), AboutActivity.class);
                break;
            case R.id.btn_invate:
                ContextUtil.startActivity(getContext(), InvitationActivity.class);
                break;
            case R.id.btn_my_order:
                ContextUtil.startActivity(getContext(), AllOrderActivity.class);
                break;
            case R.id.btn_my_address:
                ContextUtil.startActivity(getContext(), UserChangeAddressActivity.class);
                break;
            case R.id.img_icon:
                ContextUtil.startActivity(getContext(), UserInfoActivity.class);
                break;
            case R.id.btn_integral:
                ContextUtil.startActivity(getContext(), IntegralDetailActivity.class);
                break;
            case R.id.btn_mylaisee:
                ContextUtil.startActivity(getContext(), MyLaiseeActivity.class);
                break;
            case R.id.btn_cheap:
                ContextUtil.startActivity(getContext(), CheapActivity.class);
                break;
            case R.id.txt_my_balance:
                ContextUtil.startActivity(getContext(), UserBalanceActivity.class);
                break;
            case R.id.btn_question:
                ContextUtil.startActivity(getContext(), UserQuestionActivity.class);
                break;
        }
    }
}
